<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        let items = document.getElementsByClassName('hotPruductsContentList');
        let arr = [];
        for (let i = 0; i < items.length; i++) {
            let obj = {};
            let item = items[i];
            obj.url = item.getElementsByClassName('hotPruductsImg')[0].children[1].src;
            obj.title = item.getElementsByClassName('hotPruductsName')[0].innerText;
            obj.priceA = item.getElementsByClassName('hotPruductsPrice')[0].innerText;
            arr.push(obj);
        }
        // console.log(arr);
        let homedata = JSON.stringify(arr)
        console.log(homedata);
    </script>
</body>

</html>